package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * @author: wufeng
 * @date: 2018/9/6 19:49
 * @desrcption:
 */
@Getter
@Setter
@ToString
public class CoUserPermissionUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = -7821186163402553570L;

    @NotNull(message = "{dto.msg.coUserPermissionUpdate.appId.NotNull}")
    private Long appId;

    @NotNull(message = "{dto.msg.coUserPermissionUpdate.menuId.NotNull}")
    private Long menuId;

    @Valid
    @NotNull(message = "{dto.msg.coUserPermissionUpdate.coOpPerms.NotNull}")
    @Getter(onMethod_ = {@QueryIgnore})
    private CoOpPermsUpdateDTO coOpPerms;
}
